#include <string.h>
#include "env_map_demo.h"

using namespace venus;
int main(int argc, char *argv[]) {
  glutInit(&argc, argv);
  char env_file[256];
  char model_file[256];
  if (argc == 1) {
    strcpy(env_file, "e:/workspace/media/env_maps/uffizi_cross.hdr");
    strcpy(model_file, "e:/workspace/media/models/teapot.obj");
  } else if (argc == 2) {
    strcpy(env_file, "e:/workspace/media/env_maps/uffizi_cross.hdr");
    strcpy(model_file, argv[1]);
  } else if (argc == 3) {
    strcpy(model_file, argv[1]);
    strcpy(env_file, argv[2]);
  }
  VenusOptions::quiet = true;
  EnvMapDemo demo;
  demo.Initialize(model_file, env_file);
  return demo.Run();
}
